<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('index')}" method="post">
        <input type="hidden" name="pageCurrent"     value="{$pageCurrent}"/>
        <input type="hidden" name="pageSize"        value="{$pageSize}"/>
        <input type="hidden" name="orderField"      value="{$_REQUEST['orderField']}"/>
        <input type="hidden" name="orderDirection"  value="{$_REQUEST['orderDirection']}"/>
        <div class="bjui-searchBar">
            <label>搜索：</label>
            <input type="text" value="{$searchname|default=""}" name="searchname" class="form-control" size="10" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <div class="pull-right">
            <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="{:U('clear')}" data-toggle="doajax" data-confirm-msg="确定要清空日志吗？"><span style="color: red;">清空日志</span></a></li>
                        <li class="divider"></li>
                        <li><a href="{:U('del')}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids">删除选中</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
    <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" >
        <thead>
            <tr>
                <th>序号</th>
                <th data-order-field="type" data-order-direction="{$_REQUEST['orderDirection']}">类型</th>
                <th data-order-field="logname" data-order-direction="{$_REQUEST['orderDirection']}">日志名称</th>
                <th data-order-field="username" data-order-direction="{$_REQUEST['orderDirection']}">执行者</th>
                <th data-order-field="long2ip" data-order-direction="{$_REQUEST['orderDirection']}">IP</th>
                <th data-order-field="logtime" data-order-direction="{$_REQUEST['orderDirection']}">执行时间</th>
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            <empty name="list"><td colspan="8" class="text-center"> Oh! 暂时还没有内容! </td><else />
            <volist name="list" id="vo">
            <tr>
                <td>{$i}</td>
                <td>{$vo.type}</td>
                <td>{$vo.logname}</td>
                <td>{$vo.username}</td>
                <td>{:long2ip($vo['logip'])}</td>
                <td>{$vo.logtime|date="Y-m-d:h:i:s",###}</td>
                <td>
                    <input type="checkbox" name="ids" data-toggle="icheck" value="{$vo.id}">
                </td>
                <td>
                    <a href="{:U('del',array('ids'=>$vo['id']))}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                </td>
            </tr>
            </volist>
            </empty>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="{$pageSize}">{$pageSize}</option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>共{$total}条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}" data-page-current="{$pageCurrent}">
    </div>
</div>